package com.itheima.reader;

import java.io.FileReader;
import java.io.IOException;

/*
文件字符流读一个字符数组
 */
public class Demo02 {

    public static void main(String[] args) throws IOException {

        FileReader reader = new FileReader("day13\\aaa\\a.txt");
        char[] chs= new char[1024];
        int len;
        while ((len=reader.read(chs))!=-1){
            System.out.println(new String(chs, 0, len));
        }
        reader.close();

    }
}
